package com.sdkx.app.activitys;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import com.sdkx.app.R;
import com.sdkx.app.adapter.RouteInfoAdapter;

import java.util.List;

//航线详情
public class RoutesInfo extends Activity implements View.OnClickListener{
    private ImageView iv_back;
    private ListView lv_routesinfo;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(1024, 1024);
        setContentView(R.layout.activity_routeinfo);
        initView();
        initEvents();
    }

    private void initEvents() {
        iv_back.setOnClickListener(this);
    }

    private void initView() {
        iv_back=(ImageView)findViewById(R.id.iv_back);
        lv_routesinfo=(ListView)findViewById(R.id.lv_routesinfo);
//        CustomRoutes customRoutes= (CustomRoutes) getIntent().getSerializableExtra("customRoutes");
//         int id  =customRoutes.getId();
//        List<Object> mAllPoints=SelectPointInfoDBUtil.getAllMCustomWP(RoutesInfo.this,id);
//        lv_routesinfo.setAdapter(new RouteInfoAdapter(RoutesInfo.this,mAllPoints));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
          case  R.id.iv_back:
            finish();
            break;

        }

    }
}
